lcBlockAddText Home

Adds a new text object into a block.

 HANDLE lcBlockAddText (
   HANDLE hBlock,
   LPCWSTR szText,
   double X,
   double Y
 );

Parameters
hBlock
  Handle to a block.
szText
  Text string. It can contain formatting codes which allow to add specific characters.
X Y
  Coordinates of the Text insertion point.
The text placement around the point depends on default alignment by text style (LC_PROP_TSTYLE_ALIGN parameter).

Return Value

  Handle to created text object or NULL if the function fails.

Remarks

  For missing text parameters, such as height, width scale, alignment, rotation angle, oblique angle, "Upside down" and "Backward" flag, the default values from active text style will be used.

See Also

  Code sample,   lcBlockAddText2,   Text style